<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<button id="index1">检车站</button>
		<button id="index2">平台</button>
		<button id="index3">合并</button>
	</body>
	<script src="js/common/jquery-2.1.3.min.js"></script>
	<script src="js/route/routeConfig.js"></script> 
	<script src="js/route/routeHandle.js"></script>
	<script>
		/* $(document).on("click", "#index1", function() {
			routeTypeJump(1, "index","?");
		})
		$(document).on("click", "#index2", function() {
			routeTypeJump(2, "index","?");
		})
		$(document).on("click", "#index3", function() {
			routeTypeJump(3, "index","?");
		}) */
		var theRequest = {};
		var url = location.search; // 获取url中"?"符后的字串
		if (url.indexOf("?") != -1) { // 有效url中会有"?"
			// 去除字符串前端的'?'
			var str = url.substr(url.lastIndexOf("?") + 1);
			// 按照"&"分割出不同参数
			strs = str.split("&");
			for (var i = 0; i < strs.length; i++) {
				theRequest[strs[i].split("=")[0]] = (decodeURI(strs[i].split("=")[1])); // decodeURI函数对汉字和特殊符号解码
			}
		}
		theRequest.type = 2;
		routeTypeJump(theRequest.type, theRequest.alis,"?");
	</script>
</html>
